Extend 'xm dumppolicy' to support Xen-API
authorKeir Fraser <keir@xensource.com>
Wed, 3 Oct 2007 13:04:51 +0000 (14:04 +0100)
committerKeir Fraser <keir@xensource.com>
Wed, 3 Oct 2007 13:04:51 +0000 (14:04 +0100)
commit8950f5c6ba8e2349de4162af6f09f36c80670cf7
treec504141d5eb47e884c8c7e1e566b15ba0607606c
parentac9ba8d39deffe57bf3068f365e8a079ac74b5e7
Extend 'xm dumppolicy' to support Xen-API

I am extending 'xm dumppolicy' to be used via the Xen-API. For this
there are two new functions in the ACM policy class:
 - get the currently enforced policy including statistical data from
   the hypervisor
- get the ACM 'ssidref' of a Domain. Since this may be a ACM-specific
  variable or type (int) I put it into the ACM class.

I extended the Xen-API documentation with the two new functions.

Signed-off-by: Stefan Berger <Stefanb@us.ibm.com>
docs/xen-api/xenapi-datamodel.tex
tools/libxen/include/xen/api/xen_acmpolicy.h
tools/libxen/src/xen_acmpolicy.c
tools/python/xen/lowlevel/acm/acm.c
tools/python/xen/util/acmpolicy.py
tools/python/xen/util/xsm/acm/acm.py
tools/python/xen/xend/XendXSPolicy.py
tools/python/xen/xend/XendXSPolicyAdmin.py
tools/python/xen/xm/dumppolicy.py
tools/security/secpol_tool.c